# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('app', '0010_auto_20180807_0940'),
    ]

    operations = [
        migrations.CreateModel(
            name='Subtitle',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('is_delete', models.BooleanField(verbose_name='删除标记', default=False)),
                ('title', models.CharField(verbose_name='子标题名', max_length=20)),
                ('logo', models.ImageField(verbose_name='logo', upload_to='subtitle')),
                ('desc', models.CharField(verbose_name='简介', max_length=100)),
            ],
            options={
                'verbose_name': '子标题',
                'verbose_name_plural': '子标题',
                'db_table': 'df_subtitle',
            },
        ),
        migrations.CreateModel(
            name='SubtitleImage',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('is_delete', models.BooleanField(verbose_name='删除标记', default=False)),
                ('image', models.ImageField(verbose_name='图片', upload_to='subtitle')),
                ('subtitle', models.ForeignKey(verbose_name='子标题', to='app.Subtitle')),
            ],
            options={
                'verbose_name': '子标题图片',
                'verbose_name_plural': '子标题图片',
                'db_table': 'df_subtitle_image',
            },
        ),
        migrations.CreateModel(
            name='SubtitleVideo',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('is_delete', models.BooleanField(verbose_name='删除标记', default=False)),
                ('video', models.FileField(verbose_name='视频', upload_to='subtitle')),
                ('subtitle', models.ForeignKey(verbose_name='子标题', to='app.Subtitle')),
            ],
            options={
                'verbose_name': '子标题视频',
                'verbose_name_plural': '子标题视频',
                'db_table': 'df_sutitle_video',
            },
        ),
        migrations.CreateModel(
            name='TopicType',
            fields=[
                ('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
                ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('is_delete', models.BooleanField(verbose_name='删除标记', default=False)),
                ('topic', models.CharField(verbose_name='主题', max_length=50)),
                ('desc', models.CharField(verbose_name='简介', max_length=100)),
            ],
            options={
                'verbose_name': '主题类型',
                'verbose_name_plural': '主题类型',
                'db_table': 'df_topic_type',
            },
        ),
        migrations.AddField(
            model_name='subtitle',
            name='topic',
            field=models.ForeignKey(verbose_name='主题', to='app.TopicType'),
        ),
    ]
